<!DOCTYPE HTML>
<html>
<head>
    {include file="common:meta"}
</head>
<body>
<div class="page-container">
    <div class="ibox-content">
                <form class="form-horizontal" id="form" data-url="/lotterySet">
                    <div class="form-group">
                    <label class="col-sm-2 control-label" for="user_id">
                    <span class="c-red">*</span>用户ID：
                    </label>
                    <div class="col-md-2 col-sm-10">
                    <input type="text" class="form-control" id="user_id" name="user_id" value="">
                    </div>
                    </div>
                    <div class="form-group">
                    <label class="col-sm-2 control-label" for="num">
                    <span class="c-red">*</span>第几次抽中：
                    </label>
                    <div class="col-md-2 col-sm-10">
                        <input type="text" class="form-control" id="num" name="num" value="" />
                    </div>
                    </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label" for="award_id">
                    <span class="c-red">*</span>奖品名称：
                    </label>
                    <div class="col-md-2 col-sm-10">
                        <select class="form-control" name="award_id" id="award_id">
                            {if $data['award_id']}
                            <option value="$data['award_id']" selected>{$data['award_name']}</option>
                            {/if}

                            {volist name="award" id='v'}
                            <option value="{$v['award_id']}">{$v['award_name']}</option>
                            {/volist}
                        </select>
                    </div>

                    <!--<div class="form-group">-->
                    <!--<label class="col-sm-2 control-label" for="discount">-->
                    <!--<span class="c-red">*</span>折扣：-->
                    <!--</label>-->
                    <!--<div class="col-md-2 col-sm-10">-->
                    <!--<input type="number" class="form-control" id="discount" name="discount">-->
                    <!--</div>-->
                    <!--</div>-->
                    <!--<div class="form-group">-->
                    <!--<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">-->
                    <!--<button class="btn btn-primary" type="button" onclick="commonSubmit(this)">添加-->
                    <!--</button>-->
                    <!--</div>-->
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <input type="hidden" name="id" value="{$data['id']}"/>
                            <button class="btn btn-primary" type="button" onclick="commonSubmit(this)">提交</button>
                            <button class="btn btn-default" type="button" onclick="commonClose()">关闭</button>
                        </div>
                    </div>
                </form>
    </div>
</div>
    {include file="common:footer"}
<script>

</script>
</body>
</html>